<?php


namespace apps\marriage\core\model;


use vm\com\BaseModel;

class UserCheckIn extends BaseModel
{
    public function getByLimitTime($userId, $beginTime, $endTime)
    {
        $data = $this->where('dateline', '>=', $beginTime)
                    ->where('dateline', '<=', $endTime)
                    ->where('user_id', $userId)
                    ->find();
        if($data) {
            return $data->getData();
        } else {
            return null;
        }
    }
}